/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.qxypt.io
 *
 * 版权所有，侵权必究！
 */

package xw.qxypt.modules.job.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import xw.qxypt.modules.socket.service.CollectorSocketServer;

/**
 *
 *
 * 发送获取液位指令
 *
 * @author Mark sunlightcs@gmail.com
 */
@Component("pullTask")
public class pullTask implements ITask {
	private Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private CollectorSocketServer collectorSocketServer;

	@Override
	public void run(String params){
		logger.debug("液位指令发送，参数为：{}", params);
		collectorSocketServer.poll();
	}
}
